<div class="tableform">
      <table cellspacing="0" cellpadding="0" border="0" class="gridlist">
        <tr>
              <th>单据编号</th>
              <th>店铺</th>
              <th>客户/会员</th>
              <th>业务订单号</th>
              <th>凭据号</th>
              <th>费用金额</th>
        </tr>
    <{assign var="key" value="0"}>
    <{assign var="summny" value="0"}>
      <{foreach from=$res item=his}>
      <{assign var="key" value=$key+1 }>
      <{assign var="summny" value=$summny+$his.money }>
      <tbody>
        <tr>
          <td><{$his.bill_bn}></td>
          <td><{$his.shop_name}></td>
          <td><{$his.member}></td>
          <td><{$his.order_bn}></td>
          <td><{$his.credential_number}></td>
          <td><{$his.money}></td>
          </tr>
        </tbody>
      <{/foreach}>
        <tr>
          <td colspan="5">总数：<{$key}></td>
          <td><{$summny}></td>
        </tr>
      </table>
</div>